package com.lottery.material.entity.conf;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：菜单级别配置表
 * Created by 朱正磊 on 2019-04-09 10:22
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_menu_level_config")
public class MenuLevelConfig extends BaseEntity {

    private static final long serialVersionUID = -6603730578281872852L;

    @Column(columnDefinition = "varchar(20) not null comment '菜单级别编号'")
    private String menuCode;

    @Column(columnDefinition = "varchar(50) not null comment '菜单级别名称'")
    private String menuName;

    @Column(columnDefinition = "int(2) comment '排序'")
    private Integer sort;

    @Column(columnDefinition = "int(11) comment '父菜单ID'")
    private Integer parentId;

    @Column(columnDefinition = "int(1) comment '当前所属级别（一级类别或二级类别）'")
    private Integer levelType;

    @Column(columnDefinition = "int(1) comment '是否属于圈子菜单（1：否；2：是）'")
    private Integer isCircleMenu;

    @Column(columnDefinition = "int(1) default '1' comment '是否加入到模块，只针对一级菜单（1：否；2：是）'")
    private Integer isJoinModule;

    @Column(columnDefinition = "int(1) default '1' comment '是否设置热贴，只针对一级菜单（1：否；2：是）'")
    private Integer isSetHot;

    @Column(columnDefinition = "int(1) default '1' comment '状态（1：上架；2：下架）'")
    private Integer state;

}
